﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>论坛</title>
    <style type="text/css">
        * {
            padding: 0px;
            margin: 0px;
            font-family: Arial;
        }

        #top {
            width: 100%;
            height: 220px;
            background-image: url(/img/web_icon.png);
            background-position: -2px -478px;
            background-color: #0094ff;
        }

        #zhong {
            width: 900px;
            height: 178px;
            background-image: url(/img/web_logo.png);
            margin: 0px auto;
        }

        #dlzc {
            width: 85px;
            height: 25px;
            border: 1px solid #808080;
            background-color: #d95338;
            margin-left: 810px;
            color: #fff;
            line-height: 25px;
            text-align: center;
        }

            #dlzc a {
                color: #fff;
                text-decoration: none;
            }

        #daoht {
            width: 900px;
            height: 40px;
            margin: 0px auto;
        }

            #daoht ul li {
                float: left;
                list-style-type: none;
                line-height: 40px;
                width: 120px;
                height: 40px;
                text-align: center;
                font: bold 20px/40px Verdana, Geneva, sans-serif;
            }

            #daoht ul a {
                text-decoration: none;
                color: #fff;
            }

            #daoht ul li:hover {
                background-image: url(/img/web_icon.png);
                background-position: -2px -378px;
            }

        #di {
            width: 100%;
            height: 180px;
            background-color: #3a3129;
        }

        #dzhong {
            width: 900px;
            height: 180px;
            margin: 0px auto;
        }

        #zuo {
            width: 600px;
            height: 40px;
            float: left;
        }

        #you {
            width: 300px;
            height: 40px;
            float: left;
        }

        #zy {
            padding-top: 30px;
        }

        #zuo ul li {
            float: left;
            list-style-type: none;
            line-height: 40px;
            padding-right: 20px;
            font: bold 20px/40px Verdana, Geneva, sans-serif;
        }

            #zuo ul li a {
                text-decoration: none;
                color: #9d9894;
            }

                #zuo ul li a:hover {
                    color: #f18;
                }

        #gz {
            font-size: 15px;
            width: 45px;
            float: left;
            line-height: 25px;
            color: #9d9894;
        }

        #you ul {
            float: left;
            padding-top: 8px;
            padding-left: 150px;
        }

            #you ul li {
                float: left;
                width: 26px;
                height: 26px;
                list-style-type: none;
            }

        #kj {
            background-image: url(/img/tg.png);
            background-position: -1006px -728px;
        }

            #kj:hover {
                background-image: url(/img/web_home.png);
                background-position: 0px -309px;
            }

        #wb {
            background-image: url(/img/tg.png);
            background-position: -1038px -728px;
        }

            #wb:hover {
                background-image: url(/img/web_home.png);
                background-position: 0px -335px;
            }

        #xl {
            background-image: url(/img/tg.png);
            background-position: -1074px -728px;
        }

            #xl:hover {
                background-image: url(/img/web_home.png);
                background-position: 0px -361px;
            }

        #wf {
            background-image: url(/img/tg.png);
            background-position: -1112px -728px;
        }

            #wf:hover {
                background-image: url(/img/web_home.png);
                background-position: 0px -383px;
            }

        #hao {
            color: #9d9894;
            font-size: 12px;
            padding-top: 50px;
        }

        #gs {
            color: #9d9894;
            font-size: 15px;
            padding-top: 20px;
        }

        #middle {
            background-color: #ece5d8;
        }

        #content {
            width: 860px;
            margin: 0px auto;
            padding: 20px;
            border-top: 20px solid #ece5d8;
            border-bottom: 20px solid #ece5d8;
            background-color: #ffffff;
        }

        #top #daoht ul #search {
            height: 40px;
            line-height: 40px;
            width: 300px;
        }

            #top #daoht ul #search form #stxt {
                height: 30px;
                width: 200px;
                border: 1px solid #7d4a2b;
                font-size: 16px;
            }

            #top #daoht ul #search form #btn {
                height: 32px;
                width: 60px;
                background-color: #7d4a2b;
                border: 1px solid #7d4a2b;
                margin: -7px;
                font-size: 16px;
                font-weight: bold;
                color: #fff;
            }
    </style>

</head>

<body>
    <div id="top">
        <div id="zhong">
        @if (Session["login"]==null)
        {
            	<div id="dlzc"><a href="/Users/Login">登录</a>&nbsp;|&nbsp;<a href="/Users/Register">注册</a></div>
        }
        else
        {
                <div >欢迎您! @( ((Model.Users)Session["login"]).UserName) 
                    今天是:@DateTime.Now.ToString("yyyy年MM月dd日 hh:mm:ss") 
                    <a href="/Articles/Add">发帖</a> | 
                    <a href="/Articles/MyArticles">我的帖子</a> |
                    <a href="/Users/UpdatePwd">修改密码</a>
                </div>
        }
        </div>
        <div id="daoht">
            <ul>
                <li><a href="/Home/Remen">热门</a></li>
                <li><a href="/Home/Jinghua">精华</a></li>
                <li><a href="/Home/Index">最新</a></li>
@*                <li><a href="/Articles/Add">发帖</a></li>
                <li><a href="/Articles/MyArticles">我的帖子</a></li>*@
                <li id="search">
                    <form action="/Home/Index" method="post">
                        <input type="text" name="searchtxt" id="stxt"  value="@ViewBag.stxt" />
                        <input type="submit" id="btn" value="搜索" />
                    </form>
                </li>
            </ul>
        </div>
    </div>
    <div id="middle">
        <!--内容页部分-->
        <div id="content">
            @RenderSection("广告",false) 
            @RenderBody() 
        </div>
        <!--内容页部分结束-->
    </div>
    <div id="di" style="display:none">
        <div id="dzhong">
            <div id="zy">
                <div id="zuo">
                    <ul>
                        <li><a href="#">.</a></li>
                        <li><a href="#">.</a></li>
                        <li><a href="#">.</a></li>
                        <li><a href="#">.</a></li>
                        <li><a href="#">.</a></li>
                    </ul>
                </div>
                <div id="you">
                    <ul>
                        <div id="gz">.</div>
                        <a href="#">
                            <li id="kj"></li>
                        </a><a href="#">
                            <li id="wb"></li>
                        </a><a href="#">
                            <li id="xl"></li>
                        </a><a href="#">
                            <li id="wf"></li>
                        </a>
                    </ul>
                </div>
            </div>
            <div id="hao">.</div>
            <div id="gs">.</div>
        </div>
    </div>
</body>
</html>
